package com.douxg.learning.springboot.scheduled;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @Description
 * @Author douxg
 * @Date 2020/3/16 11:40
 */
@RestController
@RequestMapping("/")
public class TestController {
    @RequestMapping("/")
    public String index() {
        System.out.println("haah");
        try {
            TimeUnit.MINUTES.sleep(30);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "success";
    }
}
